package com.thinkgem.jeesite.common.utils;

/**
 * @author lxy
 * @desciption 公用枚举类
 * @Created 2019年05月08日  8:56
 */
public class EnumProperty {
    /**
     * @author: lxy
     * @date: 2019年05月08日 9:09
     * @Description: 案件类型
     */
    public enum CaseTypeEnum {
        CT_1("1", "风险预警"),
        CT_2("2", "投诉"),
        ;

        private String key;
        private String value;

        CaseTypeEnum(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }

    public enum AuditTypeEnum {
        AWAITREVIEWED("-1", "待提交"),
        UNREVIEWED("0", "未审核"),
        SUCCESS("1", "通过"),
        REJECT("2", "驳回"),
        PROVINCEREJECT("3", "省级驳回"),
        REVIEWED("4", "已审核");

        private String key;
        private String value;

        AuditTypeEnum(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }

    public enum VaccineFileTypeEnum {
        INVOICE("invoice", "发票"),
        FRONT("front", "疫苗正面照片"),
        INSTRUCTIONS("instructions", "说明"),
        RECORD("record", "记录"),
        REPORT("report", "抗体监测报告");

        private String key;
        private String value;

        VaccineFileTypeEnum(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }


    public enum DataStatus {
        ABLE("1", "数据可用"),
        UNABLE("0", "数据不可用"),
        READNOTICE("1", "app端数据已读"),
        UNREADNOTICE("0", "app端数据未读"),
        DELFLAG("1", "数据删除");

        private String key;
        private String value;

        DataStatus(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }

    public enum Attachment {

        //企业备案附件类型
        BUSINESS("business", "营业执照照片"),
        EPIDEMIC("epidemic", "防疫条件合格证号照片"),
        OTHER("other", "其他证明材料照片"),

        // 发票附件类型,
        INVOICE("invoice", "发票"),
        FRONT("front", "疫苗正面照片"),
        INSTRUCTIONS("instructions", "说明"),
        RECORD("record", "记录"),
        REPORT("report", "抗体监测报告"),


        DELETE("delete", "前端已删除附件，删除记录和七牛图片"),
        DELETEFILE("deleteFile", "前端已删除附件，只删除七牛图片"),
        DELETEDATA("deleteData", "前端已删除附件，只删除记录");

        private String key;
        private String value;

        Attachment(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }


    public enum SaveEnum {
        SAVESUCCESS("1", "保存成功"),
        SAVEFAILURE("0", "保存失败"),;

        private String key;
        private String value;

        SaveEnum(String key, String value) {
            this.key = key;
            this.value = value;
        }

        public String getKey() {
            return this.key;
        }

        public String getValue() {
            return this.value;
        }
    }

}
